package com.entity;

public class ObjectFactory {

	/**
	 * @methodDesc: 功能描述:(实例工厂方法)
	 */
	public UserEntity getUserEntity() {
		System.out.println("ObjectFactory getUserEntity");
		return new UserEntity("zhangsan", 19);
	}

	/**
	 * 
	 * @methodDesc: 功能描述:(静态工厂方法)
	 */
	static public UserEntity getStaticUserEntity() {
		System.out.println("ObjectFactory getStaticUserEntity");
		return new UserEntity("zhangsan11111", 20);
	}

}